<?php


/**
* Puree CMS
* http://www.molotsoft.ru
*
* @package Puree_CMS
* @subpackage Models
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: account.php 1074 2010-03-24 08:03:49Z molotsoft@gmail.com $
* @link $HeadURL: http://puree-cms.googlecode.com/svn/trunk/models/account.php $
*/


class Account extends GeneralModel {

/******************************************************************************/

var $name = 'Account';

var $hasMany = array(
	'Order' => array(/*'dependent' => TRUE*/)
);

var $displayImage = 'avatar';
var $displayField = 'email';

var $order = array(
	'Account.email' => 'ASC',
	'Account.id' => 'ASC'
);

var $actsAs = array(
	'Admin.Automate',
	'Containable'
);

var $fieldInputSchema = array(
	'avatar' => array('params' => 'resize=crop&x=80&y=80')
);

/******************************************************************************/

/*function beforeDelete($cascade) {
	return FALSE;
}*/

/******************************************************************************/

}


?>